using System;
using System.Collections;
using System.ComponentModel;
using System.Drawing;
using System.Windows.Forms;

namespace Weazel.Toad.Application.Forms
{
	internal class SettingsDialogForm : Weazel.Toad.Application.Forms.DialogBaseForm
	{
    private TabControl settingsTabControl;
    private TabPage generalTabPage;
    private TabPage gezelTabPage;
		private CheckBox doNotShowParseExceptions;
    private TabPage vhdlTabPage;
    private System.ComponentModel.IContainer components = null;

		public SettingsDialogForm()
		{
			// This call is required by the Windows Form Designer.
			InitializeComponent();				
		  doNotShowParseExceptions.Checked = (bool)Weazel.Toad.Application.Configuration.Settings.Default["doNotShowParserExceptions"];
							
		}

		/// <summary>
		/// Clean up any resources being used.
		/// </summary>
		protected override void Dispose( bool disposing )
		{
			if( disposing )
			{
				if (components != null) 
				{
					components.Dispose();
				}
			}
			base.Dispose( disposing );
		}

		protected override void OnClosing(CancelEventArgs e)
		{      
			Weazel.Toad.Application.Configuration.Settings.Default["doNotShowParserExceptions"] = doNotShowParseExceptions.Checked;
			Weazel.Toad.Application.Configuration.Settings.Default.Save();
		}

    protected override void OnLoad(EventArgs e)
    {
      base.OnLoad(e);
    }

		#region Designer generated code
		/// <summary>
		/// Required method for Designer support - do not modify
		/// the contents of this method with the code editor.
		/// </summary>
		private void InitializeComponent()
		{
      this.settingsTabControl = new System.Windows.Forms.TabControl();
      this.generalTabPage = new System.Windows.Forms.TabPage();
      this.doNotShowParseExceptions = new System.Windows.Forms.CheckBox();
      this.gezelTabPage = new System.Windows.Forms.TabPage();
      this.vhdlTabPage = new System.Windows.Forms.TabPage();
      this.contentPanel.SuspendLayout();
      this.headerPanel.SuspendLayout();
      this.settingsTabControl.SuspendLayout();
      this.generalTabPage.SuspendLayout();
      this.SuspendLayout();
      // 
      // contentPanel
      // 
      this.contentPanel.Controls.Add(this.settingsTabControl);
      this.contentPanel.Size = new System.Drawing.Size(668, 324);
      // 
      // dialogHeadingLabel
      // 
      this.dialogHeadingLabel.Size = new System.Drawing.Size(300, 25);
      this.dialogHeadingLabel.Text = "Toad Application Settings...";
      // 
      // settingsTabControl
      // 
      this.settingsTabControl.Controls.Add(this.generalTabPage);
      this.settingsTabControl.Controls.Add(this.gezelTabPage);
      this.settingsTabControl.Controls.Add(this.vhdlTabPage);
      this.settingsTabControl.Dock = System.Windows.Forms.DockStyle.Fill;
      this.settingsTabControl.Location = new System.Drawing.Point(0, 0);
      this.settingsTabControl.Name = "settingsTabControl";
      this.settingsTabControl.SelectedIndex = 0;
      this.settingsTabControl.Size = new System.Drawing.Size(668, 324);
      this.settingsTabControl.TabIndex = 0;
      // 
      // generalTabPage
      // 
      this.generalTabPage.Controls.Add(this.doNotShowParseExceptions);
      this.generalTabPage.Location = new System.Drawing.Point(4, 22);
      this.generalTabPage.Name = "generalTabPage";
      this.generalTabPage.Padding = new System.Windows.Forms.Padding(3);
      this.generalTabPage.Size = new System.Drawing.Size(660, 298);
      this.generalTabPage.TabIndex = 0;
      this.generalTabPage.Text = "General";
      this.generalTabPage.UseVisualStyleBackColor = true;
      // 
      // doNotShowParseExceptions
      // 
      this.doNotShowParseExceptions.AutoSize = true;
      this.doNotShowParseExceptions.Location = new System.Drawing.Point(21, 25);
      this.doNotShowParseExceptions.Name = "doNotShowParseExceptions";
      this.doNotShowParseExceptions.Size = new System.Drawing.Size(371, 17);
      this.doNotShowParseExceptions.TabIndex = 0;
      this.doNotShowParseExceptions.Text = "Do not show exceptions generated by the automatic parsing functionality.";
      // 
      // gezelTabPage
      // 
      this.gezelTabPage.Location = new System.Drawing.Point(4, 22);
      this.gezelTabPage.Name = "gezelTabPage";
      this.gezelTabPage.Size = new System.Drawing.Size(660, 298);
      this.gezelTabPage.TabIndex = 1;
      this.gezelTabPage.Text = "GEZEL";
      this.gezelTabPage.UseVisualStyleBackColor = true;
      // 
      // vhdlTabPage
      // 
      this.vhdlTabPage.Location = new System.Drawing.Point(4, 22);
      this.vhdlTabPage.Name = "vhdlTabPage";
      this.vhdlTabPage.Size = new System.Drawing.Size(660, 298);
      this.vhdlTabPage.TabIndex = 2;
      this.vhdlTabPage.Text = "VHDL Conversion";
      this.vhdlTabPage.UseVisualStyleBackColor = true;
      // 
      // SettingsDialogForm
      // 
      this.ClientSize = new System.Drawing.Size(668, 463);
      this.Name = "SettingsDialogForm";
      this.Text = "Toad Application Settings";
      this.contentPanel.ResumeLayout(false);
      this.headerPanel.ResumeLayout(false);
      this.headerPanel.PerformLayout();
      this.settingsTabControl.ResumeLayout(false);
      this.generalTabPage.ResumeLayout(false);
      this.generalTabPage.PerformLayout();
      this.ResumeLayout(false);

		}
		#endregion
   
	}
}

